package client.domain.ui.southPanel;

import static client.domain.SandboxMainKeys.*;
import client.internationalization.SandboxConstants;
import client.internationalization.SandboxMessages;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.Label;
import com.gwtext.client.core.RegionPosition;
import com.gwtext.client.widgets.Panel;
import com.gwtext.client.widgets.layout.BorderLayoutData;
import com.gwtext.client.widgets.layout.VerticalLayout;

/**
 * User: nbarrios
 * Date: Nov 9, 2009
 */
public class SouthPanel extends Panel{

	private BorderLayoutData southData;

	//	Internationalization Strings
	private SandboxConstants constants = GWT.create(SandboxConstants.class);
	private SandboxMessages messages = GWT.create(SandboxMessages.class);


	// Constructor
	public SouthPanel() {
		this.setHeight(SOUTH_PANEL_HEIGHT);
		this.setCollapsible(true);
		this.setLayout(new VerticalLayout());
		this.add(new Label("un footer!!"));

		southData = new BorderLayoutData(RegionPosition.SOUTH);
//		southData.setMinSize(100);
//		southData.setMaxSize(200);
//		southData.setMargins(new Margins(0, 0, 0, 0));
		southData.setSplit(true);
	}


	//  Getters & Setters
	public BorderLayoutData getSouthData() {
		return southData;
	}

	public void setSouthData(BorderLayoutData southData) {
		this.southData = southData;
	}

}
